package isc.unicrox.virtualsekai;

import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Matrix;
import android.os.Handler;

public class Var {
		
	static public final String ak = "UGDpNAMGmkudrjfvpRLkImFj";
	
	static public Handler MainViewHandler;
	static public MainActivity MainView;
	static public Handler GamerHandler;
	static public Gamer GamerSerivce;
	static public float WillWidth = 1080;
	static public float WillHeight = 1920;
	static public float ScreenWidth = 0;
	static public float ScreenHeight = 0;
	static public float ScreenScaleWidth = 0;
	static public float ScreenScaleHeight = 0;
	static public Matrix ScreenMatrix;
	
	static public float vx(float x){
		return x*Var.ScreenScaleWidth;
	}
	
	static public float vy(float y){
		return y*Var.ScreenScaleHeight;
	}
	
	static public Bitmap adaptBitmap(int r, Matrix matrix, Context context) {
		Bitmap bitmap = BitmapFactory.decodeResource(context.getResources(), r);
		bitmap = Bitmap.createBitmap(bitmap, 0, 0, bitmap.getWidth(), bitmap.getHeight(), matrix, true);
		return bitmap;
	}
	
	static public int LocationRank = 0;
	static public String LocationTime = "";
	static public int LocationError = 0;
	static public double LocationLatitude = 0;
	static public double LocationLontitude = 0;
	static public float LocationRadius = 0;
	static public float LocationSpeed = 0;
	static public int LocationSatellite = 0;
	static public float LocationDirection = 0;
	static public String LocationAddr = "";
	static public int LocationOperationers = 0;
	static public String DebugString = "";
	static public float OrientationValue = 0;
	
	static public final String BaiduApi = "http://api.map.baidu.com/geodata/v3";
	static public final String ApiPoiTraverse = "/poi/list?";
	static public final String ApiPoiUpdate = "/poi/update";
	static public final String ApiPoiCreate = "/poi/create";
}
